﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="AnalysisDefinition.aspx.cs" Inherits="TCV_WEB.Admin.Page.AnalysisDefinition"
     %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="6" border="0" class="tableForm" id="tblManagePartner">
                    <tr>
                        <td colspan="5" align="center" class="formTitle">
                            Analysis Definition
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <table style="width: 100%;" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        &nbsp;
                                        <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbCATEGORY" runat="server" Text="Category"></asp:Label>
                                    </td>
                                    <td class="style5">
                                        <telerik:RadTextBox ID="txtCategory" runat="server" MaxLength="3">
                                        </telerik:RadTextBox>
                                        &nbsp;
                                    </td>
                                    <td class="style4">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbSUBCATEGORY" runat="server" Text="Sub Category"></asp:Label>
                                    </td>
                                    <td class="style6">
                                        <telerik:RadTextBox ID="txtSubCategory" runat="server" MaxLength="1">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbMASK" runat="server" Text="Mask"></asp:Label>
                                    </td>
                                    <td class="style6">
                                        <telerik:RadTextBox ID="txtMask" runat="server">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbDESCRIPTION" runat="server" Text="Description"></asp:Label>
                                    </td>
                                    <td class="style2" colspan="2">
                                        <telerik:RadTextBox ID="txtDescription" runat="server" Width="350px">
                                        </telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbSHORTDESC" runat="server" Text="Short Description"></asp:Label>
                                    </td>
                                    <td class="style2" colspan="2">
                                        <telerik:RadTextBox ID="txtShortDescription" runat="server" Width="200px">
                                        </telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbNONVALIDATED" runat="server" Text="Non Valdated"></asp:Label>
                                    </td>
                                    <td class="style6">
                                        <telerik:RadButton ID="chkNonValidated" runat="server" ButtonType="ToggleButton"
                                            Text="_" ToggleType="CustomToggle" AutoPostBack="false" BackColor="transparent">
                                            <ToggleStates>
                                                <telerik:RadButtonToggleState Text="Unchecked" PrimaryIconCssClass="rbToggleCheckbox" />
                                                <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked" />
                                            </ToggleStates>
                                        </telerik:RadButton>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        <asp:Label ID="lbAMENDABLE" runat="server" Text="Amendable"></asp:Label>
                                    </td>
                                    <td class="style6">
                                        <telerik:RadButton ID="chkAllowAmend" runat="server" ButtonType="ToggleButton" Text="_"
                                            ToggleType="CustomToggle" AutoPostBack="false" BackColor="transparent">
                                            <ToggleStates>
                                                <telerik:RadButtonToggleState Text="Unchecked" PrimaryIconCssClass="rbToggleCheckbox" />
                                                <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked" />
                                            </ToggleStates>
                                        </telerik:RadButton>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1">
                                        &nbsp;
                                    </td>
                                    <td class="style6">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1" colspan="3">
                                        <div style="width: 350px; margin: auto">
                                            <telerik:RadButton ID="btnNew" runat="server" Text="Add New" OnClick="btnNew_Click"
                                                Width="100px">
                                            </telerik:RadButton>
                                            <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
                                                Width="100px">
                                            </telerik:RadButton>
                                            <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
                                                Width="100px">
                                            </telerik:RadButton>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1" colspan="3">
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                                Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
                                AllowPaging="True" AllowSorting="True" ShowGroupPanel="True" OnNeedDataSource="dgvList_NeedDataSource"
                                OnItemCommand="dgvList_ItemCommand">
                                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
                                </HeaderContextMenu>
                                <MasterTableView PageSize="20" DataKeyNames="SUN_DB,CATEGORY,SUBCATEGORY">
                                    <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridButtonColumn CommandName="Selected" FilterControlAltText="Filter column column"
                                            Text="Edit" UniqueName="column3">
                                        </telerik:GridButtonColumn>
                                        <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                                        </telerik:GridClientSelectColumn>
                                        <telerik:GridBoundColumn DataField="SUB_DTB" HeaderText="DTB" UniqueName="columnDTB"
                                            Visible="False">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="CATEGORY" HeaderText="Category" UniqueName="column1"
                                            HeaderStyle-Width="90px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="SUBCATEGORY" HeaderText="Sub Category" UniqueName="column"
                                            HeaderStyle-Width="90px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="Description" UniqueName="column2">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                    <EditFormSettings>
                                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                        </EditColumn>
                                    </EditFormSettings>
                                </MasterTableView>
                                <ClientSettings AllowDragToGroup="True">
                                    <Selecting AllowRowSelect="True" />
                                </ClientSettings>
                                <FilterMenu EnableImageSprites="False">
                                </FilterMenu>
                            </telerik:RadGrid>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
